<template>
  <div>
    <div class="title1">
      <div class="left">
        <img @click="btnfanhui" src="../assets/img/fanhui.png" alt="" />
      </div>
      <div class="centen">个人信息</div>
      <div class="right">
        <img src="../assets/img/fanhuishouye.png" alt="" />
      </div>
    </div>

    <div class="name">
      <van-cell-group>
        <van-cell title="姓名" v-model="arr.name" />
        <van-cell title="联系电话" v-model="arr.phone" />
      </van-cell-group>
    </div>
    <div class="ccc"></div>
    <div class="box2">
      <van-cell title="性别" v-model="arr.sex" size="large" />
      <van-cell title="年薪" v-model="arr.year_salary" size="large" />
      <van-cell title="月薪" v-model="arr.month_salary" size="large" />
      <van-cell title="个人简历" v-model="arr.remark" size="large" />
    </div>
  </div>
</template>
<script>
import { PersonalApi } from "../request/api";
export default {
  data() {
    return {
      arr: {},
    };
  },
  created() {
    PersonalApi().then((res) => {
      console.log(res.data);
      console.log(res.data.age);
      this.arr = res.data;
      console.log(this.arr.age);
    });
  },
  methods: {
    btnfanhui() {
      this.$router.push("/userinterface");
    },
  },
};
</script>
 
<style lang = "less" scoped>
body {
  background-color: #ccc;
}
.title1 {
  width: 100%;
  height: 60px;
  background-color: #003399;
  display: flex;
  justify-content: space-between;
  line-height: 70px;
  color: #fff;
  font-size: 20px;

  img {
    width: 15px;
    padding-left: 10px;
    padding-right: 10px;
    height: 20px;
  }
}
.ccc {
  height: 20px;
  width: 100%;
  background-color: #ccc;
}
</style>